package cn.dslcode.security.common;

import cn.dslcode.common.web.response.ResponseCode;

/**
 * @author dongsilin
 * @version 2018/3/21.
 */
public enum OAuth2ResponseCode implements ResponseCode {

    captcha_code_empty(2010, "验证码不能为空"),
    captcha_code_error(2011, "验证码错误"),
    username_not_exists(2012, "用户名不存在"),
    password_error(2013, "密码错误"),

    ;
    public int code;
    public String message;

    OAuth2ResponseCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public String getName() {
        return name();
    }

}
